package com.zs.members.pojo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张硕
 * @since 2021-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_member_level")
@ApiModel(value = "TbMemberLevel对象", description = "")
public class Level extends Model<Level> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "等级id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "等级名")
    @TableField("name")
    private String name;

    //成长值
    @ApiModelProperty(value = "成长值")
    @TableField("growth_point")
    private Integer growthPoint;

    //是否为默认等级：0->不是；1->是
    @ApiModelProperty(value = "是否为默认等级：0->不是；1->是")
    @TableField("default_status")
    private Integer defaultStatus;

    //免运费标准
    @ApiModelProperty(value = "免运费标准")
    @TableField("free_freight_point")
    private BigDecimal freeFreightPoint;

    //是否有评论获奖励特权
    @ApiModelProperty(value = "是否有评论获奖励特权")
    @TableField("priviledge_comment")
    private Integer priviledgeComment;

    //是否有专享活动特权
    @ApiModelProperty(value = "是否有专享活动特权")
    @TableField("priviledge_promotion")
    private Integer priviledgePromotion;

    //是否有会员价格特权
    @ApiModelProperty(value = "是否有会员价格特权")
    @TableField("priviledge_member_price")
    private Integer priviledgeMemberPrice;

    //是否有生日特权
    @ApiModelProperty(value = "是否有生日特权")
    @TableField("priviledge_birthday")
    private Integer priviledgeBirthday;

    //等级详情
    @ApiModelProperty(value = "等级详情")
    @TableField("note")
    private String note;

    //普通1 白银1.2 黄金1.5....
    @ApiModelProperty(value = "普通1 白银1.2 黄金1.5....")
    @TableField("ratio")
    private Double ratio;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
